package com.bdqn.crm.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

/**
 * @TableName sys_right
 */
@TableName(value = "sys_right")
@Data
public class SysRight implements Serializable {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     *
     */
    @TableId
    private String rightCode;

    /**
     *
     */
    private String rightParentCode;

    /**
     *
     */
    private String rightType;

    /**
     *
     */
    private String rightText;

    /**
     *
     */
    private String rightUrl;

    /**
     *
     */
    private String rightTip;

    /**
     * 多对多
     */
    @TableField(exist = false)
    private Set<SysRole> roles = new HashSet<SysRole>(0);

}